package com.example.malllocationserver.repository.Impl;


import com.example.malllocationserver.entity.data.Data;
import com.example.malllocationserver.mapper.DataMapper;
import com.example.malllocationserver.repository.StoreData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class StoreDataImpl implements StoreData {

    @Autowired
    DataMapper dataMapper;
    @Override
    public Boolean storeData(String serial,String position, String wifi, String global, String load) {
        return dataMapper.insertIntoWifi(serial,position,wifi,global,load);
    }

    @Override
    public List<Data> position() {
        return dataMapper.position();
    }
}
